public class parallelogram extends GeometricObject{
    private double bottom;
    private double height;
    private double side;

    public double getBottom() {
        return bottom;
    }

    public void setBottom(double bottom) {
        this.bottom = bottom;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getSide() {
        return side;
    }

    public void setSide(double side) {
        this.side = side;
    }

    public parallelogram() {
    }

    public parallelogram(double bottom, double height, double side ) {
        this.bottom = bottom;
        this.height = height;
        this.side = side;

    }

    public double getArea() {
        return bottom * height;
    }


    public double getPerimeter() {
        return 2 * (side + bottom);
    }
}
